package com.yingside.guess;

import java.util.Scanner;

public class Person {
    String username;
    Scanner input = new Scanner(System.in);

    public int showUserFist(){
        //请输入你要出的拳
        System.out.println("请输入你的出拳：1.剪刀 2.石头 3.布");
        int userFist = input.nextInt();
        //输完拳之后，告知输入的是哪个？
        switch(userFist){
            case 1:
                System.out.println("你出拳：剪刀" );
                break;
            case 2:
                System.out.println("你出拳：石头" );
                break;
            case 3:
                System.out.println("你出拳：布" );
                break;
        }
        return userFist;
    }
}
